import request from '@/utils/request'

// 查询项目合同关键条款列表
export function listDealContractTerms(query) {
  return request({
    url: '/terms/dealContractTerms/list',
    method: 'get',
    params: query
  })
}

// 查询当前项目合同关键条款列表(不分页查所有)
export function findListTreeTerms(query) {
  return request({
    url: '/terms/dealContractTerms/listTree',
    method: 'get',
    params: query
  })
}

// 查询当前项目合同关键条款列表(不分页查所有)
export function findListTerms(id) {
  return request({
    url: '/terms/dealContractTerms/findListTerms/' + id,
    method: 'get'
  })
}

// 查询项目合同关键条款详细
export function getDealContractTerms(id) {
  return request({
    url: '/terms/dealContractTerms/' + id,
    method: 'get'
  })
}

// 保存项目合同关键条款
export function saveDealContractTerms(data) {
  return request({
    url: '/terms/dealContractTerms/save',
    method: 'post',
    data: data
  })
}

// 删除项目合同关键条款
export function delDealContractTerms(id) {
  return request({
    url: '/terms/dealContractTerms/' + id,
    method: 'delete'
  })
}

// 导出项目合同关键条款
export function exportDealContractTerms(query) {
  return request({
    url: '/terms/dealContractTerms/export',
    method: 'get',
    params: query
  })
}

// 查询项目合同关键条款(流程已审核的)
export function actList(id) {
  return request({
    url: '/terms/dealContractTerms/actList/' + id,
    method: 'get'
  })
}
